package ee.ut.cs.mc.l2;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.TextView;

public class IntentExtra extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_intent_extra);
        TextView intentText = (TextView) findViewById(R.id.intentText);
        intentText.setText(getIntent().getExtras().get("extraInformation").toString());
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_intent_extra, menu);
        return true;
    }
}
